package com.zzj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 回复表
 * </p>
 *
 * @author zzj
 * @since 2023-07-22
 */
@Getter
@Setter
@TableName("blog_reply")
@Schema(name = "Reply", description = "$!{table.comment}")
public class Reply implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "评论主表ID")
    private Integer commentId;

    private Integer fromId;

    @Schema(description = "评论者姓名")
    private String fromUsername;

    @Schema(description = "评论者头像")
    private String fromAvatar;

    @Schema(description = "评论者内容")
    private String fromContent;

    @Schema(description = "被评论者ID")
    private Integer toId;

    @Schema(description = "被评论者用户名")
    private String toUsername;

    @Schema(description = "被评论者头像")
    private String toAvatar;

    @Schema(description = "被评论者内容")
    private String toContent;

    @Schema(description = "点赞数")
    private Integer likes;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "回复时间")
    private LocalDateTime createdAt;
}
